package com.api.main.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@Data
@EqualsAndHashCode
public class VoteExcel {

    @ExcelProperty({"投票主题", "描述", "投票时间", "序号"})
    private Integer id;

    @ExcelProperty({"${title}", "${describe}", "${voteTime}", "投票时间"})
    @DateTimeFormat("yyyy-MM-dd HH:mm::ss")
    private Date voteTime;

    @ExcelProperty({"${title}", "${describe}", "${voteTime}", "投票人"})
    private String voteName;

    @ExcelProperty({"${title}", "${describe}", "${voteTime}", "${title}"})
    private String voteOption;
}